const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const JUSchema = new Schema({
    bookid: {     
        type: String,
        required: true
    },
    userid: {     
        type: String,
        required: true
    },
    reason: {
        type: String,
        required: true
    },
    state: {
        type: Number,
        default: 0
    },
    date: {         
        type: Date,
        default: new Date()
    },
})

module.exports = Ju = mongoose.model("Ju", JUSchema);